<?php
	$template_dir = JURI::root().'templates/'.$mainframe->getTemplate().'/assets/';	
	
?>

<?php
jimport('mylibs.function');
$url = JURI::root().'images/rokquickcart/';
//$url_thumb = JURI::root().'images/magazines/thumbs/';
$i =0;

//echo '<div class="bd1b m10l m10r p20t p20b">';

if(count($this->items)>0){
    for ($i=0; $i<count($this->items); $i+=2) {
    //substr($row['image'], str_len($row['image']-4))
    	$row = $this->items[$i];
    	$row2 = isset($this->items[$i+1])?$this->items[$i+1]:NULL;
        ?>   
        <div class="bd1b m10l m10r p20t p20b">
                	<div class="w340 float_left p15l">
                    	<div class="float_left m10r  box_img_pro">
                        <h4>
                        	<a href="index.php?option=com_servers&layout=product_detail&id=<?php echo $row['id']?>&cateid=<?php echo $row['category_id']?>">
                        	<?php echo $row['server_name']?>
                        	</a>
                        </h4>
                        <a href="index.php?option=com_servers&layout=product_detail&id=<?php echo $row['id']?>&cateid=<?php echo $row['category_id']?>">
                        <img src="<?php echo $row['thumbnail']?>" alt="" />
                        </a>                        </div>
<p>
                        	1 months     $<?php echo $row['price_1_month']?>/month
3 months     $<?php echo calc_price($row['price_1_month'],3,0.05);?>/month(5% off)
6 months     $<?php echo calc_price($row['price_1_month'],6,0.10);?>/month(10% off)
12 months   $<?php echo calc_price($row['price_1_month'],12,0.15);?>/month(15% off)<br /><br />
                            <h1>$ <?php echo $row['price_1_month']?></h1>
                            <a href="index.php?option=com_servers&layout=product_detail&id=<?php echo $row['id']?>&cateid=<?php echo $row['category_id']?>"><img src="<?php echo JURI::root();?>templates/mwc_template/assets/img/bt_addtocart.jpg" alt="" class="p5t" /></a>
                        </p>
                    </div>                 
 					
 					<div class="w340 float_left p15l m10l">
                    	<div class="float_left m10r  box_img_pro">
                        <h4>
                        <?php
                        	if ($row2) {
                        ?>
                        	<a href="index.php?option=com_servers&layout=product_detail&id=<?php echo $row2['id']?>&cateid=<?php echo $row2['category_id']?>">
                        	<?php echo $row2['server_name']?>
                        	</a>
                        <?php
                        	} 
                        ?>
                        </h4>
                         <?php
                        	if ($row2) {
                        ?>
                       <a href="index.php?option=com_servers&layout=product_detail&id=<?php echo $row2['id']?>&cateid=<?php echo $row2['category_id']?>">
                        <img src="<?php echo $row2['thumbnail']?>" alt=""  />
                       </a>  
                        <?php
                        	} 
                        ?> 
                       </div>
<p>
						<?php
                        	if ($row2) {
                        ?>
                        	1 months     $<?php echo $row2['price_1_month']?>/month
3 months     $<?php echo calc_price($row2['price_1_month'],3,0.05);?>/month(5% off)
6 months     $<?php echo calc_price($row2['price_1_month'],6,0.10);?>/month(10% off)
12 months   $<?php echo calc_price($row2['price_1_month'],12,0.15);?>/month(15% off)<br /><br />
                            <h1>$ <?php echo $row2['price_1_month']?></h1>
                            <a href="index.php?option=com_servers&layout=product_detail&id=<?php echo $row2['id']?>&cateid=<?php echo $row2['category_id']?>"><img src="<?php echo JURI::root();?>templates/mwc_template/assets/img/bt_addtocart.jpg" alt="" class="p5t" /></a>
                        <?php
                        	} 
                        ?> 
                        </p>
                    </div>
                    <div class="clear_left"></div>  
                    </div>
    <?php
    }
}
//echo '</div>';
?>
<div class="right p20r">
    <?php echo $this->pagination->getPagesLinks(); ?>
</div>
<br clear="both"/>

